package com.tqjc.plccontrol.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @projectName: BaotouSteel
 * @className: PlcInfo
 * @author: Patienyon
 * @description: PLC信息表
 * @date: 2023/6/13 9:54
 */
@TableName(value = "plc_info")
@EqualsAndHashCode(callSuper = true)
@Data
@DS("baotou")
@Schema(description = "PLC信息表")
public class PlcInfo extends Model implements Serializable {
    /**
     * PLC主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Integer id;
    /**
     * PLC名称
     */
    @Schema(description = "PLC名称")
    private String name;
    /**
     * PLC品牌
     */
    @Schema(description = "PLC品牌")
    private String brand;
    /**
     * PLC型号
     */
    @Schema(description = "PLC型号")
    private String model;
    /**
     * PLC地址
     */
    @Schema(description = "PLC地址")
    private String ipAddress;
    /**
     * PLC端口号
     */
    @Schema(description = "PLC端口号")
    private String port;
    /**
     * PLC机架号
     */
    @Schema(description = "PLC机架号")
    private Integer slot;
    /**
     * PLC槽位号
     */
    @Schema(description = "PLC槽位号")
    private Integer rack;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remarks;
}
